package com.apiclient;


import com.apiclient.pojo.LmApiClient;
//import lombok.Data;
//import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author lmx
 */
@Configuration
@ConfigurationProperties("lmx.client")
//@Data
@ComponentScan
public class LmApiCLientConfigures {
    private String accessKey;
    private String secreptKey;

    @Bean
    public LmApiClient lmApiClient() {
        return new LmApiClient(accessKey,secreptKey);
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecreptKey() {
        return secreptKey;
    }

    public void setSecreptKey(String secreptKey) {
        this.secreptKey = secreptKey;
    }
}
